NDepend.API Documentation
ToDays(Nullable<UInt64>) Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class > ToDays Method : ToDays(Nullable<UInt64>) Method
The number of days.
Gets a System.TimeSpan value, with total number of days equals to nullableNbDays.
Syntax
[Extension()]
public static TimeSpan ToDays( 
   Nullable<ulong> nullableNbDays
)

Parameters

nullableNbDays
The number of days.
Exceptions
ExceptionDescription
This exception is thrown if the expected time span is greater than System.TimeSpan.System.TimeSpan.MaxValue.
Remarks
if nullableNbDays is null, System.TimeSpan.System.TimeSpan.Zero is returned.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members
Overload List